//package eng.agile;

//import android.app.Activity;
/*import android.app.AlertDialog;
import android.content.DialogInterface;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
*/
/*public class locationValues extends Activity {
/*	static String value1;
	static String value2;
	static EditText e1;
	static EditText e2;
	static TextView curText;
	
	public void routeButton(){
	AlertDialog.Builder builder = null ;//= new AlertDialog.Builder(this);
		
	e1 = (EditText)findViewById(R.id.editText1);
		e2 = (EditText)findViewById(R.id.editText2);
		value1 = e1.getText().toString();
		value2 = e2.getText().toString();
		if( e2.getText().length()>0){
			if(e1.getText().length()==0)
				e1.setText("Current Address");
			builder.setMessage("Route From : "+e1.getText().toString()+"\nto : "+e2.getText().toString())
			.setCancelable(true)
			.setPositiveButton("yes", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {
					//put calling function to get route from maps

					findViewById(R.id.progressBar1).setVisibility(1);
				}
			})
			.setNegativeButton("No", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {
					dialog.cancel();
					findViewById(R.id.progressBar1).setVisibility(4);
				}
			});

			AlertDialog dialog = builder.create();
			dialog.show();
		}
		else{
			builder.setMessage("Try to enter Destination Value")
			.setNegativeButton("OK", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {
					dialog.cancel();
					findViewById(R.id.progressBar1).setVisibility(4);
				}
			});
			AlertDialog dialog = builder.create();
			dialog.show();
		}
		
		
	}
	
	
	public void interChangeButton(){
		AlertDialog.Builder builder = new AlertDialog.Builder(this);
		e1 = (EditText)findViewById(R.id.editText1);
		e2 = (EditText)findViewById(R.id.editText2);
		findViewById(R.id.progressBar1).setVisibility(4);
		if(e2.getText().length() > 0 ){
			
			if(e1.getText().length() == 0 )
				e1.setText("Current Location");
			
			value1 = e1.getText().toString();
			value2 = e2.getText().toString();
			
			e1.setText(value2);
			
			e2.setText(value1);
		}
		else
		{
			builder.setMessage("Try to Destination Value").setNegativeButton("OK", new DialogInterface.OnClickListener() {
				public void onClick(DialogInterface dialog, int id) {
					dialog.cancel();
				}
			});
			AlertDialog dialog = builder.create();
			dialog.show();
		}
	}
	
	
	*/
//}
